<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>审核详情</title>
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../locale/easyui-lang-zh_CN.js"
	charset="utf-8"></script>
</head>
<body>
	<div>
		<div class="demo-tip icon-tip"></div>
		<div>请对托单中的数据进行审核</div>
	</div>
		<table id="pg" class="easyui-propertygrid" border="true" style="width:350px;height:465px;overflow:auto;" data-options="
				url:'check_right.json',
				method:'get',
				showGroup:true,
				showHeader:false,
				scrollbarSize:0
			" >
	    </table>
	<table width="300px">
	<tr>
		<td width="150" align="left"><a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="getChanges()">审核确认</a></td>
		<td width="150" align="right"><a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-redo'" onclick="getChanges()">驳回</a></td>
	</tr>
	</table>
	

	<script type="text/javascript">
		function showGroup(){
			$('#pg').propertygrid({
				showGroup:true
			});
		}
		function hideGroup(){
			$('#pg').propertygrid({
				showGroup:false
			});
		}
		function showHeader(){
			$('#pg').propertygrid({
				showHeader:false
			});
		}
		function hideHeader(){
			$('#pg').propertygrid({
				showHeader:true
			});
		}
		function getChanges(){
			var s = '';
			var rows = $('#pg').propertygrid('getChanges');
			for(var i=0; i<rows.length; i++){
				s += rows[i].name + ':' + rows[i].value + ',';
			}
			alert(s)
		}
	</script>
</body>
</html>